package com.zhehekeji.opsys.api.resp;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.zhehekeji.opsys.api.common.util.SuperResp;

/**
 * @ClassName GetSurveyQuestionListResp
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2016-11-11   上午11:42:45
 */
@XmlRootElement
public class GetSurveyQuestionListResp extends SuperResp{

	/**
	 * 
	 */
	private static final long serialVersionUID = -156175656102756390L;

	private Integer recordSize;
	private List<SurveyQuestionInfo> surveyQuestionInfos;
	
	public Integer getRecordSize() {
		return recordSize;
	}

	public void setRecordSize(Integer recordSize) {
		this.recordSize = recordSize;
	}

	public List<SurveyQuestionInfo> getSurveyQuestionInfos() {
		return surveyQuestionInfos;
	}

	public void setSurveyQuestionInfos(List<SurveyQuestionInfo> surveyQuestionInfos) {
		this.surveyQuestionInfos = surveyQuestionInfos;
	}

	@Override
	public String toString() {
		return "GetSurveyQuestionListResp [getResultCode()=" + getResultCode()
				+ ", getResultDesc()=" + getResultDesc() + "]";
	}

	public static class SurveyQuestionInfo implements Serializable{

		/**
		 * 
		 */
		private static final long serialVersionUID = 7232774588792023204L;
		private Long id;
		private String title;
		private Integer type;
		private Integer choiceType;
		private Integer choiceRequire;
		private Double score;
		private String answer;
		private Integer sequence;
		private Long cpCode;
		private Integer answerRequire;
		private String changeDate;
		private String picture;
		private String picturehd;
		private List<SurveyChoiceInfo> surveyChoiceInfos;
		public Long getId() {
			return id;
		}
		public void setId(Long id) {
			this.id = id;
		}
		public String getTitle() {
			return title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		public Integer getType() {
			return type;
		}
		public void setType(Integer type) {
			this.type = type;
		}
		public Integer getChoiceType() {
			return choiceType;
		}
		public void setChoiceType(Integer choiceType) {
			this.choiceType = choiceType;
		}
		public Integer getChoiceRequire() {
			return choiceRequire;
		}
		public void setChoiceRequire(Integer choiceRequire) {
			this.choiceRequire = choiceRequire;
		}
		public Double getScore() {
			return score;
		}
		public void setScore(Double score) {
			this.score = score;
		}
		public String getAnswer() {
			return answer;
		}
		public void setAnswer(String answer) {
			this.answer = answer;
		}
		public Integer getSequence() {
			return sequence;
		}
		public void setSequence(Integer sequence) {
			this.sequence = sequence;
		}
		public Long getCpCode() {
			return cpCode;
		}
		public void setCpCode(Long cpCode) {
			this.cpCode = cpCode;
		}
		public Integer getAnswerRequire() {
			return answerRequire;
		}
		public void setAnswerRequire(Integer answerRequire) {
			this.answerRequire = answerRequire;
		}
		public String getChangeDate() {
			return changeDate;
		}
		public void setChangeDate(String changeDate) {
			this.changeDate = changeDate;
		}
		public String getPicture() {
			return picture;
		}
		public void setPicture(String picture) {
			this.picture = picture;
		}
		public String getPicturehd() {
			return picturehd;
		}
		public void setPicturehd(String picturehd) {
			this.picturehd = picturehd;
		}
		public List<SurveyChoiceInfo> getSurveyChoiceInfos() {
			return surveyChoiceInfos;
		}
		public void setSurveyChoiceInfos(List<SurveyChoiceInfo> surveyChoiceInfos) {
			this.surveyChoiceInfos = surveyChoiceInfos;
		}
	}
	
	public static class SurveyChoiceInfo implements Serializable{

		/**
		 * 
		 */
		private static final long serialVersionUID = -760679211982802689L;
		private Long id;
		private String orderno;
		private String content;
		private Integer type;
		private Integer sequence;
		private Long cpCode;
		public Long getId() {
			return id;
		}
		public void setId(Long id) {
			this.id = id;
		}
		public String getOrderno() {
			return orderno;
		}
		public void setOrderno(String orderno) {
			this.orderno = orderno;
		}
		public String getContent() {
			return content;
		}
		public void setContent(String content) {
			this.content = content;
		}
		public Integer getType() {
			return type;
		}
		public void setType(Integer type) {
			this.type = type;
		}
		public Integer getSequence() {
			return sequence;
		}
		public void setSequence(Integer sequence) {
			this.sequence = sequence;
		}
		public Long getCpCode() {
			return cpCode;
		}
		public void setCpCode(Long cpCode) {
			this.cpCode = cpCode;
		}
	}
}

